/*
 * WeightedDistribution.h
 *
 *  Created on: 24.11.2011
 *      Author: jan
 */

#ifndef WEIGHTEDDISTRIBUTION_H_
#define WEIGHTEDDISTRIBUTION_H_

#include "Particle.h"
#include <vector>
#include <cstdlib>

namespace std {

class WeightedDistribution {
public:
	vector<Particle> states;
	double accum;
	Particle pick();
	bool isNotANan(double i);
	WeightedDistribution(vector<Particle> p);
	virtual ~WeightedDistribution();
};

} /* namespace std */
#endif /* WEIGHTEDDISTRIBUTION_H_ */
